package com.sky.gray.common;

import lombok.*;

import java.io.Serializable;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class Response<T> implements Serializable {

    private static final long serialVersionUID = 1696944129861204134L;

    private String code;

    private String message;

    private T data;


    @AllArgsConstructor
    @Getter
    public enum ResponseStatus {

        SUCCESS("0000", "调用成功"),
        ERROR("0001", "未知错误");

        private String code;

        private String info;

    }


}
